<?php

function LoadGalleryById($idP)
{
    global $dbsql,$language;
    
    $sql_select = "select * from tblgallery where iStatus =1 and iParentId= $idP order by iOrder";
    
    return $dbsql->load($sql_select);
}
?>